package com.framework.auth;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableFeignClients(basePackages="com.framework.**.api")
@EnableEurekaClient
@EnableResourceServer
@ComponentScan({"com.framework.common.config.feign","com.framework.auth","com.framework.core"})
@EnableSwagger2
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class,DruidDataSourceAutoConfigure.class})
public class TtzCloudAuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(TtzCloudAuthApplication.class, args);
    }

}
